<!DOCTYPE html>
<html lang="en" xmlns:v-on="http://www.w3.org/1999/xhtml">
<head>
    <meta charset="UTF-8">
    <title>事件</title>
</head>
<body>
    <div id="app">
        当前num的值为:{{num}}<br/>
        <button  v-on:click="num++">我是按钮</button>
    </div>

    <script src="./node_modules/vue/dist/vue.js"></script>
    <script>
        var app = new Vue({
            el:"#app",
            data:{
                num:10
            }
        });
    </script>
</body>
</html>